<a href="{#root#}/admin/logout" class="right">logout</a>
<h1>Administracija</h1>


<div id="menu" class="left">
	<ul>
		<li><a href="#page/edit/1" onclick="adminContent('{#root#}/admin_page/edit/1')">Početna strana</a></li>
		<li><a href="#news" onclick="adminContent('{#root#}/admin_news')">Vesti</a></li>
		<li><a href="#games" onclick="adminContent('{#root#}/admin_games')">Igre</a></li>
		<li><a href="#gallery" onclick="adminContent('{#root#}/admin_gallery')">Galerije</a></li>
		<li><a href="#page/edit/2" onclick="adminContent('{#root#}/admin_page/edit/2')">Kontakt</a></li>
	</ul>
</div>

<div id="container" class="left">

<script type="text/javascript">
{literal}
var href = location.href;
if(href.indexOf("#")>=0) {
	href = href.substr(href.indexOf("#")+1);
	var items = href.split("/");
	var controller = items[0];
	var method = items[1]; method = method?method:"index";
	var params = items[2]; params = params?params:"";
	adminContent("/admin_"+controller+"/"+method+"/"+params);
}
{/literal}
</script>

</div>